﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<%
    int lang = (int)ViewData["Language"];
    VietImage.Models.Image img = (VietImage.Models.Image)ViewData["Image"];
    if (img != null)
    {
%>

<div style="margin-left:10px; margin-right:10px;">
    <div style="width:180px; height:250px;">                                
        <div class="dotpanel" style="width:180px; height:180px;">
            <img src="/Image/Display/<%= img.ID %>" width="180px" height="180px" alt="" onclick="opendetailimagepanel(<%= img.ID %>);" style="cursor:pointer;"/>
        </div>
        <div style="margin-top:10px;">
            <div style="float:left"><%= img.GetDetail(lang).Name%></div><div class="plusbutton" onclick="showaddtolightbox(<%= img.ID %>)" style="float:right; margin-top:-5px; margin-right:-5px;"></div>
            <div style="clear:both;"><div class="downloadbutton" style="float:left;"></div><span><a>Fullsize</a> | <a>Smallsize</a> | <a>Thumbmail</a></span></div>
        </div>
    </div>
</div>
<%
    }
 %>
